- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.2k
storage: change storage pool to Up state when cancel storage migration #11773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
storage: change storage pool to Up state when cancel storage migration #11773
Conversation
| @blueorangutan package | 
| @weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. | 
| Codecov Report❌ Patch coverage is  Additional details and impacted files@@             Coverage Diff              @@
##               4.20   #11773      +/-   ##
============================================
- Coverage     16.17%   16.17%   -0.01%     
+ Complexity    13298    13295       -3     
============================================
  Files          5656     5656              
  Lines        498242   498271      +29     
  Branches      60458    60466       +8     
============================================
- Hits          80584    80583       -1     
- Misses       408686   408719      +33     
+ Partials       8972     8969       -3     
 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
 | 
| Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15258 | 
| @blueorangutan test | 
| @weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests | 
| [SF] Trillian test result (tid-14507) 
 | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can not see whether this would fix the issue. It probably would and testing must show. But in general the cancel maintenance method is 130 lines and three phases, two of which should be structured and modularised more to be easier to read and control, what they do.
        
          
                server/src/main/java/com/cloud/storage/StoragePoolAutomationImpl.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | 
 yes, this needs testing. except  
 +1, please go ahead with the refactoring | 
| 
 will do, but if not on this branch it will be conflicts. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm and tested in a lab env
| @blueorangutan package | 
| @weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. | 
| Packaging result [SF]: ✖️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 15300 | 
| @blueorangutan package | 
| @weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. | 
| Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15301 | 
| @blueorangutan test | 
| @weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests | 
| [SF] Trillian test result (tid-14542) 
 | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm. didn't test.
| 
 | 
| 
 tested in for VMs and systemVMs. VMs are just stopped and restarted when the pool is back. I will test some more with VM-HA. | 
| A remaining issue is that VMs with HA-offerings are stopped as well during bringing into maintenance. these are started again after canceling maintenance. | 
| 
 this is not an issue with this PR. I think we are good to go. | 
| @slavkap | 
| @weizhouapache, yes, I will test it tomorrow | 
| @blueorangutan package | 
| @weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. | 
| Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15339 | 
| @blueorangutan test | 
| @weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code LGTM, tested with NFS and StorPool primary storage
| 
 great, thanks for the testing @slavkap | 
| Merging based on approvals and manual tests thanks @DaanHoogland @slavkap @vishesh92 | 
| [SF] Trillian test result (tid-14581) 
 | 
apache#11773) * storage: change storage pool to Up state when cancel storage migration * Update 11773: connect host to shared pool after cancelling storage migration * Update 11773: update db only * Update 11773: skip capacity update for storpool
apache#11773) * storage: change storage pool to Up state when cancel storage migration * Update 11773: connect host to shared pool after cancelling storage migration * Update 11773: update db only * Update 11773: skip capacity update for storpool
Description
This PR may fix #11764
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?